package com.aaa.sso.service;

import com.aaa.common.bo.Member;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * fileName:RemoteMemberService
 * description:
 * author: znb
 * createTime:2020/12/7 0007 11:17
 * version:1.0.0
 */
@FeignClient("memberService")
public interface RemoteMemberService {

    /**
     * 根据用户名查询对象
     * @param userName
     * @return
     */
    @GetMapping("/member/queryByUserName")
    Member queryByUserName(@RequestParam("userName") String userName);

}
